import request from '@/utils/request'

// 查询员工列表
export function listTalentpool(query) {
  return request({
    url: '/business/talentpool/list',
    method: 'get',
    params: query
  })
}

// 查询员工详细
export function getTalentpool(id) {
  return request({
    url: '/business/talentpool/' + id,
    method: 'get'
  })
}

// 新增员工
export function addTalentpool(data) {
  return request({
    url: '/business/talentpool',
    method: 'post',
    data: data
  })
}

// 修改员工
export function updateTalentpool(data) {
  return request({
    url: '/business/talentpool',
    method: 'put',
    data: data
  })
}

// 删除员工
export function delTalentpool(id) {
  return request({
    url: '/business/talentpool/' + id,
    method: 'delete'
  })
}
export function become(data) {
    return request({
      url: '/business/talentpool/become',
      method: 'post',
      data: data
    })
  }